import request from '@/utils/request'
import http from "@/utils/httpsz.js";

export function getCategory(query) {
    return request({
        url: '/cfg/getCategory',
        method: 'get',
        params: query
    })
}

export function processCount(query) {
    return request({
        url: '/kyry/processCount',
        method: 'post',
        data: query
    })
}

export function getPersonList(query) {
    return request({
        url: '/kyry/getPersonList',
        method: 'post',
        data: query
    })
}
export function insertPersonList(query) {
    return request({
        url: '/kyry/insertPersonList',
        method: 'post',
        data: query
    })
}
export function personDetails(query) {
    return request({
        url: '/kyry/personDetails',
        method: 'post',
        data: query
    })
}
export function updatePersonList(query) {
    return request({
        url: '/kyry/updatePersonList',
        method: 'post',
        data: query
    })
}
export function deletPersonList(query) {
    return request({
        url: '/kyry/deletPersonList',
        method: 'post',
        data: query
    })
}

export function officeContact(query) {
    return request({
        url: '/kyry/officeContact',
        method: 'get',
        data: query
    })
}
export function personCheck(query) {
    return request({
        url: '/kyxq/personCheck',
        method: 'post',
        data: query
    })
}
export function exportList(params){
    return http.downPost(`/kyry/exportList`,params)
}
export function researcherNavApi(query) {
    return request({
        url: '/kyry/researcherNavApi',
        method: 'post',
        data: query
    })
}
export function personDetailsView(query) {
    return request({
        url: '/kyry/personDetailsView',
        method: 'post',
        data: query
    })
}
